//
// 作者：AKA_GGbond
// 时间：2025/7/17
// 邮箱：evain_wl@163.com
//

#ifndef ESMU_W_REGISTRATIONFORM_H
#define ESMU_W_REGISTRATIONFORM_H

#include <QWidget>
#include "W_LoginButton.h"

class QPropertyAnimation;
class W_InputBox;

class W_RegistrationForm : public QWidget
{
    Q_OBJECT

public:
    explicit W_RegistrationForm(QWidget *parent = nullptr);
    ~W_RegistrationForm();

protected:
    void paintEvent(QPaintEvent* event);

public slots:
    void execute_animation(W_LoginButton::AnimationState State);

private slots:
    void onRegistraClicked();

private:
    void animations();
    void crop_corner();
    void draw_text();

private:
    QPropertyAnimation* animation{nullptr};
    int zoom_rate = 20;

    W_InputBox* username{nullptr};
    W_InputBox* password{nullptr};
    W_InputBox* rootpsword{nullptr};
    W_LoginButton* login_button{nullptr};
};


#endif //ESMU_W_REGISTRATIONFORM_H
